package com.itheima.reggie;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//lombok提供的日志功能
//使用:在类上添加 注解@Slf4j
//在方法内使用
@Slf4j
@ServletComponentScan
@SpringBootApplication
@EnableTransactionManagement//开启对事务的管理的支持
public class ReggieApplication {

    public static void main(String[] args) {
        String  name="reggie";
     log.info("项目{}启动...,name");
        SpringApplication.run(ReggieApplication.class, args);
    }

}
